<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<style>
    .width{
        width: 220px!important;
    }
    .width-text{
        width: 400px!important;
    }
</style>


<body>

<nav th:fragment="menu(n)" class="navbar navbar-inverse lucency-sm rounded-no lucency-sm animated fadeIn">
    <div class="container">

        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">切换</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#" th:href="@{/}" ><b>创美网盘</b></a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li><a th:href="@{/}" href="#"><span class="glyphicon glyphicon-home"></span> 首页</a></li>
                <li><a href="#" th:href="|@{/goDisk}?pagestart=1|"><sapn class="glyphicon glyphicon-tag"></sapn> 网盘</a></li>
                <li><a href="#" th:href="@{/dynamic/index}"><sapn class="glyphicon glyphicon-align-left"></sapn> 动态</a></li>
                <li><a href="#" th:href="@{/aboutus}"><span class="glyphicon glyphicon-list"></span> 关于我们</a></li>
                <li class="active"><a href="#"><span class="glyphicon glyphicon-list"></span> 编辑信息</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">

                <!--<li><img id="avatar" src="http://www.blogry.cn/images/avatar.jpg" class="img-circle" width="40px" height="40px"></li>-->
                <li class="dropdown">
                    <a href="javascript:(0)" data-toggle="dropdown">
                        <img class="img-size-least img-circle" src="../static/images/avatar/avatar.jpg" th:src="${user.getAvatar()}">
                        <span th:text="${user.getNickname()}">hello</span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li role="presentation" class="dropdown-header">登录操作</li>
                        <li><a href="#" th:href="@{/user/logout}"  role="menuitem"><span class="glyphicon glyphicon-remove"></span> 注销</a></li>
                        <!--分割线-->
                        <li class="divider"></li>
                        <li role="presentation" class="dropdown-header">用户操作</li>
                        <li><a href="#" th:href="@{/user/editor}" role="menuitem"><span class="glyphicon glyphicon-pencil"></span> 编辑信息</a></li>
                    </ul>
                </li>
                <!--<li class=""><a href="#"><span class="glyphicon glyphicon-pencil"></span> 修改</a></li>-->
            </ul>
        </div>
    </div>
</nav>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="container animated swing lucency-sm">

    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 th:text="${disk.getFilename()}">编辑</h3>
            <hr>
        </div>
        <div class="panel panel-body">
            <div class="row">
                <div class="col-md-10 col-md-offset-2">
                    <form action="#" th:action="@{/disk/modifydisk}" role="form" method="post">
                        <input hidden name="id" type="text" th:value="${disk.getId()}">
                        <!--<label>文件名</label>
                        <input type="text" class="form-control width-text" name="filename" th:value="${disk.getFilename()}">-->
                        <br>
                        <label>类型</label><br>
                        <select id="select" class="selectpicker bla bla bli" data-live-search="true" name="typeid">
                            <div th:each="type : ${types}">
                                <option value="1" th:value="${type.getId()}" th:text="${type.getTypeName()}">文档</option>
                                <!--/*-->　　
                                <option value="2">EXE</option>
                                <option value="3">音乐</option>
                                <!--*/-->
                            </div>
                        </select>
                        <br>
                        <br>
                        <button type="submit" class="btn btn-success width">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>


</div>

<!--/*/<th:block th:replace="fragments :: script">/*/-->
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<!--加载bootstrap验证器-->
<script src="../static/bootstrap/js/bootstrapValidator.min.js" th:src="@{/bootstrap/js/bootstrapValidator.min.js}"></script>
<!--/*/</th:block>/*/-->
</body>
</html>